# curl -sSf https://gitee.com/softyouling/mydotfiles/raw/main/cloudnative/lntu/chat_oneapi_llm/gpu/disable_nouveau.sh | bash -s
# reboot
# lspci | grep nouveau
# lspci | grep -i nvidia

# ##驱动 https://www.nvidia.cn/geforce/drivers/

# 远程安装会检测x server,要让它不检测

# Would you like to run the nvidia-xconfig utility to automatically update
# your X configuration file so that the NVIDIA X driver will be used when you
# restart X? Any pre-existing X configuration file will be backed up.
# 选择NO

# ## CUDA https://developer.nvidia.com/cuda-toolkit-archive

# CUDA：GPU编程的语言函数。CUDA 版本 (对应)> Tensorflow 版本。
# cuDNN：深度学习/矩阵运算的加速库。 CUDA 版本 (对应)> cuDNN 版本。
# 显卡驱动（CUDA驱动）：向下兼容的，可以一直保持最新。
# wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda_12.5.0_555.42.02_linux.run
# /etc/profile文件
echo export PATH=${PATH}:/usr/local/cuda-12.5/bin >>/etc/profile
echo export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda-12.5/lib64 >>/etc/profile
# source /etc/profile
# nvcc -V

## cuDNN https://developer.nvidia.com/rdp/cudnn-archive
# 将解压后的文件复制到cuda的安装后的目录中 将复制后的文件全部添加“a+r”权限
# chmod a+r /usr/local/cuda-11.6/include/cudnn.h /usr/local/cuda-11.6/lib64/libcudnn*

# 安装完成。
